<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

         <title><?php echo webconfig('WEB_SITE_TITLE'); ?> - Powered by EasySNS!</title>
  
  
  <meta name="keywords" content="<?php echo webconfig('WEB_SITE_KEYWORD'); ?>">
  <meta name="description" content="<?php echo webconfig('WEB_SITE_DESCRIPTION'); ?>">

<link rel="shortcut icon" href="__PUBLIC__/images/favicon.ico">
  <link rel="stylesheet" type="text/css" href="__CSS__/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
 
  <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/jianyue.css" />


    

		<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>

			<script type="text/javascript" src="__PUBLIC__/js/compatibility.js"></script>
		<!--[if lt IE 9]>
		<script type="text/javascript" src="__PUBLIC__/js/html5shiv.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/respond.min.js"></script>
		<![endif]-->
</head>
<body>

<script type="text/javascript">
var G_POST_HASH="<?php echo session_id(); ?>";
	var G_BASE_URL = "<?php echo webconfig('web_url'); ?>";
	var G_USER_ID = "<?php echo $nowuid; ?>";
	var G_USER_NAME = "<?php echo $userinfo['nickname']; ?>";
	</script>
<div class="aw-top-menu-wrap">

    <div class="container">
        <!-- logo -->
        <div class="aw-logo hidden-xs">
            <a href="<?php echo es_url('Index/index'); ?>" id="logo">
                <img src="__PUBLIC_IMG__/logoblack.png"/>
            </a>
        </div>
        <!-- end logo -->
        <!-- 搜索框 -->
        <div class="aw-search-box ">
            <form class="navbar-search" action="<?php echo es_url('search/index'); ?>" id="global_search_form" method="post">
                <input class="form-control search-query" type="text" placeholder="搜索问题、话题或人" autocomplete="off" name="q"
                       id="aw-search-query">
                <span title="搜索" id="global_search_btns" onclick="$('#global_search_form').submit();"><i
                        class="iconfont icon-chazhao"></i></span>
                <div class="aw-dropdown">
                    <div class="mod-body">
                        <p class="title">输入关键字进行搜索</p>
                        <ul class="aw-dropdown-list hide"></ul>
                        <p class="search"><span>搜索:</span><a onclick="$('#global_search_form').submit();"></a></p>
                    </div>

                </div>
            </form>
            <a href="javascript:search(0);" class="search-close">关闭</a>
        </div>
        <script type="text/javascript">
            function search(s) {

                if (s == 1) {
                    var height = $('.aw-top-nav').height() - 16;

                    $('#xiaosou').fadeOut();

                    $('.headnav').find('.hidden-xs').hide();

                    $('.aw-search-box').show().animate({top: height}, 300);
                } else {
                    $('#xiaosou').fadeIn();
                    $('.headnav').find('.hidden-xs').show();
                    $('.aw-search-box').stop().fadeOut();
                }
            }
        </script>
        <!-- end 搜索框 -->
        <!-- 导航 -->
        <div class="aw-top-nav navbar">
            <div class="navbar-header">
                <button class="navbar-toggle pull-left">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
                <ul class="nav navbar-nav">

                    <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <?php if($vo['pid'] == '1'): ?>
                    <li>
                        <a href="<?php echo getnavlink($vo['link'],$vo['sid']); ?>" target="<?php echo $vo['target']; ?>" title="<?php echo $vo['alias']; ?>" <?php if(true == getnavactive(getnavlink($vo['link'],$vo['sid']))): ?>class="active" <?php endif; ?>><i
                            class="iconfont icon-<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?></a>
                    </li>
                    <?php endif; ?>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    <?php if(session('member_info')): ?>
                    <li>
                        <a href="<?php echo es_url('user/mess'); ?>" class=""><i class="iconfont icon-remind1"></i> 通知</a>
                        <?php if($messcount > 0): ?>
                        <span class="badge badge-important" id="notifications_unread"><?php echo $messcount; ?></span>
                        <?php endif; ?>
                        <div class="aw-dropdown pull-right hidden-xs">
                            <div class="mod-body">
                                <ul id="header_notification_list">

                                    <?php if($messlist): ?>

                                    <?php if(is_array($messlist)): $i = 0; $__LIST__ = $messlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <li>
                                        <h3 class="title">
                                            <i class="iconfont icon-remind"></i> <?php echo $vo['messname']; ?>&nbsp;&nbsp;<span
                                                class="time"><?php echo friendlyDate($vo['update_time']); ?></span>


                                        </h3>

                                        <p class="msg-body"><?php echo $vo['content']; ?>
                                        </p>

                                    </li>

                                    <?php endforeach; endif; else: echo "" ;endif; ?>


                                    <?php else: ?>

                                    <p class="aw-padding10" align="center">没有未读通知</p>
                                    <?php endif; ?>


                                </ul>
                            </div>
                            <div class="mod-footer">
                                <a href="<?php echo es_url('user/mess'); ?>">查看全部</a>
                            </div>
                        </div>
                    </li>
                    <?php endif; ?>


                </ul>
            </nav>
        </div>
        <!-- end 导航 -->
        <!-- 用户栏 -->

        <?php if(session('member_info')): ?>
        <div class="aw-user-nav">

            <a href="javascript:;" class="aw-user-nav-dropdown">
                <img alt="<?php echo $userinfo['nickname']; ?>" src="<?php echo getheadurl($userinfo['userhead']); ?>">

            </a>
            <div class="aw-dropdown dropdown-list pull-right">
                <ul class="aw-dropdown-list">
                    <?php if($userinfo['is_inside'] == 1): ?>
                    <li class=""><a href="<?php echo webconfig('web_url'); ?>admin.php" target="_blank"> 管理后台</a></li>
                    <?php endif; ?>
                    <li class=""><a href="<?php echo es_url('user/home',array('id'=>$userinfo['id'])); ?>"><i
                            class="iconfont icon-fenlei"></i> 主页</a></li>
                    <li class=""><a href="<?php echo es_url('user/mess'); ?>"><i class="iconfont icon-remind"></i> 消息</a></li>
                    <li class=""><a href="<?php echo es_url('user/mytopic'); ?>"><i class="iconfont icon-pinglun"></i> 我的帖子</a></li>

                    <li><a href="<?php echo es_url('user/index'); ?>"><i class="iconfont icon-shezhi"></i> 设置</a></li>
                    <li><a href="javascript:;" data-url="<?php echo es_url('user/logout'); ?>" class="logoutajax" target="_blank"><i
                            class="iconfont icon-close"></i> 退出</a></li>
                </ul>
            </div>

        </div>
        <div class="aw-publish-btn">
            <a id="header_publish" href="<?php echo es_url('topic/topicadd'); ?>" class="btn-primary">
                <i class="iconfont icon-fabu2"></i>发布</a>

        </div>
        <?php else: ?>
        <div class="aw-user-nav">

            <a class="btn-primary btnst " href="<?php echo es_url('user/login'); ?>">登录</a>
            <span class="or">or</span>
            <a class="register btn-success btnst" href="<?php echo es_url('user/register'); ?>">注册</a>
            <!-- end 登陆&注册栏 -->
        </div>


        <?php endif; ?>


    </div>
    <div class="headnav" id="fudao" style="">
        <div class="container">

            <ul class="">

                <?php if(is_array($topiccatelist)): $i = 0;$__LIST__ = is_array($topiccatelist) ? array_slice($topiccatelist,0,10, true) : $topiccatelist->slice(0,10, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li class="xs <?php if($cateinfo['id'] == $vo['id']): ?>active<?php endif; ?>">
                <a href="<?php echo es_url('topic/cindex',array('id'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <li class="pull-right" id="xiaosou"><a href="javascript:search(1);" class="search"><i
                        class="icon icon-search"></i>&nbsp;搜索</a></li>


            </ul>
        </div>
    </div>

</div>

  
<div class="aw-container-wrap">

	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">

					<!-- tab切换 -->
					<ul class="nav nav-tabs aw-nav-tabs active hidden-xs">
					
			<li <?php if($order == 2): ?>class="active"<?php endif; ?>><a href="<?php echo es_url('topic/cindex',array('order'=>2,'id'=>$id)); ?>" id="sort_control_hot">热门</a></li>
						<li <?php if($order == 3): ?>class="active"<?php endif; ?>><a href="<?php echo es_url('topic/cindex',array('order'=>3,'id'=>$id)); ?>">推荐</a></li>
						<li <?php if($order == 1): ?>class="active"<?php endif; ?>><a href="<?php echo es_url('topic/cindex',array('order'=>1,'id'=>$id)); ?>">最新</a></li>

						<h2 class="hidden-xs"><i class="iconfont icon-liebiao"></i><?php echo $cateinfo['name']; ?>  <?php echo hook('banzhuname', array('info'=>$cateinfo)); ?></h2>
					</ul>
					<!-- end tab切换 -->

					
					<div class="aw-mod aw-explore-list" style="padding:0;">
						<div class="mod-body">
							<div class="aw-common-list">
								<ul class="fly-list">          
        <?php if(is_array($topiclist)): $i = 0; $__LIST__ = $topiclist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

   <li>
   <a class="fly-avatar " data-id="<?php echo $vo['uid']; ?>"  href="<?php echo es_url('user/home',array('id'=>$vo['uid'])); ?>" rel="nofollow">
	<img src="<?php echo getheadurl($vo['userhead']); ?>" alt="<?php echo $vo['nickname']; ?>">
	
        <?php if($vo['rzstatus']): ?>
	<i class="iconfont <?php echo $vo['rzicon']; ?>"></i>
	<?php endif; ?>
            </a>
            
          
            <h2>
             
              <a class="listlink" href="<?php echo es_url('Topic/gview',array('id'=>$vo['id'])); ?>"><?php echo $vo['title']; ?></a>
            </h2>

            <div class="fly-list-info">
          
              
              
             <span class="text-color-999"><a href="<?php echo es_url('user/home',array('id'=>$vo['replyuid'])); ?>" class="aw-user-name" data-id="<?php echo $vo['replyuid']; ?>"><?php echo $vo['replyuser']; ?></a> <?php echo $vo['actionname']; ?>  • <?php echo $vo['focuscount']; ?> 人关注  • <?php echo $vo['reply']; ?> 个回复 • <?php echo $vo['view']; ?> 次浏览 • 	<?php echo $vo['praise']; ?>次点赞	  			</span>
 
          
              <span class="fly-list-nums es-font12 hidden-xs"> 
           
               <?php echo $vo['replytime']; ?>
              </span>
            </div>
            <div class="fly-list-badge">
   <?php if($vo['settop'] == 1): ?><span class="layui-badge layui-bg-red ">置顶</span><?php endif; ?>
		<?php if($vo['choice'] == 1): ?><span class="layui-badge layui-bg-green">推荐</span><?php endif; ?>		
            </div>
          </li>


<?php endforeach; endif; else: echo "" ;endif; ?>
       
         
        </ul>


							</div>
						</div>
						<div class="mod-footer">
							<div class="page-control">
							<ul class="pagination pull-right">
							<?php echo $page; ?>
                             </ul></div>						</div>
					</div>
				</div>

				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs hidden-sm">
										<div class="aw-mod aw-text-align-justify">
	<div class="mod-head">
		<a href="<?php echo es_url('topic/htlist'); ?>" class="pull-right">更多 &gt;</a>
		<h3>热门话题</h3>
	</div>
	<div class="mod-body">
						<?php if(is_array($hotgrouplist)): $i = 0; $__LIST__ = $hotgrouplist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
							<dl>
								<dt class="pull-left aw-border-radius-5">
									<a href="<?php echo es_url('topic/index',array('name'=>$vo['name'])); ?>">
									<img alt="" src="<?php echo get_picture_url($vo['cover_id']); ?>"></a>
								</dt>
								<dd class="pull-left">
									<p class="clearfix">
										<span class="topic-tag"> 
										<a href="<?php echo es_url('topic/index',array('name'=>$vo['name'])); ?>" class="text"><?php echo $vo['name']; ?></a>
										</span>
									</p>
									<p>
										<b><?php echo $vo['topiccount']; ?></b> 个帖子, <b><?php echo $vo['membercount']; ?></b> 人关注
									</p>
								</dd>
							</dl>
							<?php endforeach; endif; else: echo "" ;endif; ?>
					</div>
</div>
					<div class="aw-mod aw-text-align-justify">
	<div class="mod-head">
		
		<h3>热门用户</h3>
	</div>
	<div class="mod-body">
					
		<?php if(is_array($hotuserlist)): $i = 0; $__LIST__ = $hotuserlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>		
		<dl>
			<dt class="pull-left aw-border-radius-5">
				<a href="<?php echo es_url('user/home',array('id'=>$vo['id'])); ?>"><img src="<?php echo getheadurl($vo['userhead']); ?>" alt="<?php echo $vo['nickname']; ?>"></a>
			</dt>
			<dd class="pull-left">
				<a href="<?php echo es_url('user/home',array('id'=>$vo['id'])); ?>" data-id="<?php echo $vo['id']; ?>" class="aw-user-name vusername"><?php echo $vo['nickname']; ?></a>
				<?php if($vo['type']): ?>
				
				&nbsp;&nbsp;<i class="fz16 iconfont <?php if($vo['type'] == 1): ?>icon-myvip<?php else: ?>icon-myvip i-ve<?php endif; ?>" title="<?php if($vo['type'] == 1): ?>个人认证<?php else: ?>企业认证<?php endif; ?>"></i>					
				
				
				
				<?php endif; ?>
				
				<p><b><?php echo $vo['topiccount']; ?></b> 个帖子, <b><?php echo $vo['zancount']; ?></b> 次赞同</p>
			</dd>
		</dl>
			<?php endforeach; endif; else: echo "" ;endif; ?>
					</div>
</div>		
							
	
		</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>

<div class="aw-footer-wrap">
	<div class="aw-footer">
		<div class="container">
			<div class="row">
				<div class="col-sm-2">
					<h4>站内导航</h4>
					<ul class="list-unstyled">
						   <?php if(is_array($footnav)): $i = 0; $__LIST__ = $footnav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

    
<li><a href="<?php echo getnavlink($vo['link'],$vo['sid']); ?>" title="<?php echo $vo['alias']; ?>" target="<?php echo $vo['target']; ?>"><i class="iconfont icon-<?php echo $vo['icon']; ?>" ></i> <?php echo $vo['name']; ?></a></li>

    <?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>联系合作</h4>
					<ul class="list-unstyled">
					
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>关注我们</h4>
					<ul class="list-unstyled">
					
					</ul>
				</div>
				<div class="col-sm-2">
					<h4>友情链接</h4>
					<ul class="list-unstyled">
						
						<?php echo hook('friendLink'); ?> 
					</ul>
				</div>
	 			<div class="col-sm-4">
					<h4>内容许可</h4>
					
				</div>
			</div>
		</div>
		
		<p class="es-margin-t-20">Copyright © 2017 <a href="http://es.imzaker.com">EasySNS内容建站系统</a> 版权所有 <?php echo webconfig('WEB_SITE_TITLE'); ?> <?php echo webconfig('WEB_SITE_ICP'); ?></p>
<p><?php echo html_entity_decode(webconfig('WEB_SITE_FOOTER')); ?></p>
		
	</div>
</div>



<div id="aw-ajax-box" class="aw-ajax-box hidden-xs">
</div>
<a href="javascript:;" id="gotoTop" class="show hidden-xs" style="right: 71.5px;"><i></i></a>







<!--页面JS脚本-->


			<script type="text/javascript" src="__JS__/aws.js"></script>
			<script type="text/javascript" src="__JS__/aw_template.js"></script>
				<script type="text/javascript" src="__JS__/app.js"></script>
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/jquery.easing.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>


</body>
</html>